package com.ruoyi.base.domain;

import java.math.BigDecimal;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备工单对象 base_flow
 * 
 * @author yepanpan
 * @date 2025-04-15
 */
@Data
public class BaseFlow extends BaseEntity
{
    public static final String STATUS_WAIT = "0";
    public static final String STATUS_DOING = "1";
    public static final String STATUS_OUT = "2";
    public static final String STATUS_STOP = "4";
    public static final String STATUS_COMPLETE = "9";
    public static final String CHECK_PASS = "1";
    public static final String CHECK_UN_PASS = "2";
    private static final long serialVersionUID = 1L;

    private Long[] ids;

    /** 自增长主键ID */
    private Long id;

    /** 申请部门 */
    @Excel(name = "申请部门")
    private String deptName;
    private Long deptId;

    /** 申请人 */
    @Excel(name = "申请人")
    private String userName;
    private Long userId;

    /** 流程ID */
    @Excel(name = "流程")
    private String flowTypeName;
    private String flowTypeCode;
    @NotNull
    private Long flowTypeId;

    /** 设备分类 */
    @Excel(name = "设备分类")
    private String typeName;
    private Long typeId;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;


    /** 申请数量 */
    @Excel(name = "申请数量")
    private Integer amount;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 申请原由 */
    @Excel(name = "申请原由")
    @NotNull
    private String reason;

    /** 审核结果 */
    @Excel(name = "审核结果", dictType="flow_check_status", comboReadDict=true)
    private String checkStatus;

    /** 审核人 */
    @Excel(name = "审核人")
    private String checkUserName;
    private Long checkUserId;

    /** 审核说明 */
    private String checkContent;

    /** 流程状态 */
    @Excel(name = "流程状态", dictType="flow_status", comboReadDict=true)
    private String flowStatus;
}
